const UserModel = require("../models/userModel");

const UserService = {

    login :function (req,res){
        res.status(200).json({status: 400,msg:'请输入账号和密码111！'+req.query.username})
    },
    async findAdminById(adminId) {
        try {
            console.log(adminId);
            return await UserModel.findByPk(1);
        } catch (error) {
            throw new Error("数据库查询失败");
        }
    }
};


module.exports = UserService